package mylab.base.foundation.template.entity;


import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;


@Getter
@Setter
@EqualsAndHashCode(onlyExplicitlyIncluded = true, callSuper = false)
public abstract class SnowIdEntity extends Entity<String> {


    /**
     * 使用雪花算法自动生成主键 ID
     * MyBatis-Plus默认的主键策略是：ASSIGN_ID （使用了雪花算法）
     */
    @EqualsAndHashCode.Include
    protected String id;


}
